/*
 *  Actor.h
 *  lab3
 *
 *  Created by Fredrik Gustafsson on 11/17/10.
 *  Copyright 2010 Kungliga Tekniska Högskolan. All rights reserved.
 *
 */

#ifndef _WOK2_ACTOR
#define _WOK2_ACTOR

#include <iostream>
#include <string>
#include <time.h>
//#include <stdlib.h>
#include "Actor.h"
#include "Item.h"

namespace wok2 {
	class Actor {
	public:
		int gen_damage(int,int) const;
		Actor(std::string n_name, int n_health) : name(n_name), health(n_health){}
		std::string name;
		int health;
		virtual ~Actor() {}
		virtual std::string type() const=0;
		virtual void fight(Actor&) =0;
		virtual std::ostream& write_nongeneric(std::ostream& os) const;
	};
}

#endif
